package codeRose.service;

import java.util.Date;
import java.util.List;


import codeRose.domain.Customer;
import codeRose.domain.Goods;
import codeRose.domain.Worker;


public interface UserService {
    
    /**
     * 
     * @param String name
     * @param String password
     * 
     * */
	//用户登录
	Customer login(String name,String password,String identify);
    //用户注册
    int signup(String name,String password,String nickname,String email,String sex,String address,String phone);
    //显示用户所有订单
    List<Goods> listGoods();
    //管理员登录
    Worker Mlogin(String name,String password,String identify);
    //管理员A添加商品
    int addGoods(String name,Integer price,String type,String discount,String createtime,String limittime,String productby,String size,String pic,Integer number);
    //管理员B确认商品
    int confirm(Integer id);
    /*
    //添加商品
    int addGoods(String name,String price,String number,String buytime,int userid);
    //删除商品
    int deleteGoods(int id);*/
}